home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / comm / tcp / netinput37_3.lha / NetInput / source / debug.h < prev    next >
C/C++ Source or Header  |  1995-06-25  |  428b  |  25 lines

  1. #ifndef __DEBUG_H
  2. #define __DEBUG_H
  3. /*
  4. ** $VER: debug.h 1.0 (17 Jun 1995)
  5. **
  6. ** convenient debuggung support
  7. **
  8. ** (C) Copyright 1995 Marius Gröger
  9. **     All Rights Reserved
  10. **
  11. ** $HISTORY:
  12. **
  13. ** 17 Jun 1995 : 001.000 :  created
  14. */
  15.  
  16. #if DEBUG != 0
  17. extern void KPrintF(char *, ...), KGetChar(void);
  18. #  define d(x) do { KPrintF("%s:%s:%ld:",__FILE__,__FUNC__,__LINE__); KPrintF x; } while(0)
  19. #else
  20. #  define d(x)
  21. #endif
  22.  
  23. #endif
  24.  
  25.